package com.neonbacon.snake;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.View;

public class ScoreView extends View{
    static int score;
    int gold = Color.rgb(255,215,0);
	public ScoreView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	@Override
	protected void onDraw(Canvas c){
		super.onDraw(c);
		Paint p = new Paint();
		p.setColor(gold);
		p.setTextSize(25);
		c.drawText("Score = " + score,0,20,p);
		this.invalidate();
	}
}
